package ModelLayer;

public class Employee extends Person
{

    private String department;
    private int ordered;
    private int sold;
    private int leased;
    private double income;

    public Employee(int id, String name, String email,String phoneNumber, String department, String password)
    {
        super(id,name,email,phoneNumber, password );
        this.department = department;
        this.sold = 0;
        this.leased = 0;
        this.income = 0;
    }


    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }
    
    public int getSold()
    {
        return sold;
    }
    
    public void setSold(int amount)
    {
        this.sold = amount;
    }
    
    public int getLeased()
    {
        return leased;
    }
    
    public void setLeased(int amount)
    {
        this.leased = amount;
    }
    
    public double getIncome()
    {
        return income;
    }
    
    public void setIncome(double income)
    {
        this.income = income;
    }
    
    public int getOrdered()
    {
        return ordered;
    }
    
    public void setOrdered(int amount)
    {
        this.ordered += amount;
    }
}
